<?php

/**
 * TOP API: taobao.fenxiao.cooperation.update request
 *
 * @author auto create
 * @since  1.0, 2013-09-13 16:51:03
 */
class Taobao_Request_FenxiaoCooperationUpdateRequest {
	/**
	 * 分销商ID
	 **/
	private $distributorId;

	/**
	 * 等级ID(0代表取消)
	 **/
	private $gradeId;

	/**
	 * 分销方式(新增)： AGENT(代销)、DEALER(经销)(默认为代销)
	 **/
	private $tradeType;

	private $apiParas = array();

	public function setDistributorId($distributorId) {
		$this->distributorId = $distributorId;
		$this->apiParas["distributor_id"] = $distributorId;
	}

	public function getDistributorId() {
		return $this->distributorId;
	}

	public function setGradeId($gradeId) {
		$this->gradeId = $gradeId;
		$this->apiParas["grade_id"] = $gradeId;
	}

	public function getGradeId() {
		return $this->gradeId;
	}

	public function setTradeType($tradeType) {
		$this->tradeType = $tradeType;
		$this->apiParas["trade_type"] = $tradeType;
	}

	public function getTradeType() {
		return $this->tradeType;
	}

	public function getApiMethodName() {
		return "taobao.fenxiao.cooperation.update";
	}

	public function getApiParas() {
		return $this->apiParas;
	}

	public function check() {

		Taobao_RequestCheckUtil::checkNotNull($this->distributorId, "distributorId");
		Taobao_RequestCheckUtil::checkNotNull($this->gradeId, "gradeId");
	}

	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
